package com.firesafe.repair.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.firesafe.common.utils.PageUtils;
import com.firesafe.common.utils.Query;

import com.firesafe.repair.dao.RepairmanDao;
import com.firesafe.repair.entity.RepairmanEntity;
import com.firesafe.repair.service.RepairmanService;


@Service("repairmanService")
public class RepairmanServiceImpl extends ServiceImpl<RepairmanDao, RepairmanEntity> implements RepairmanService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RepairmanEntity> page = this.page(
                new Query<RepairmanEntity>().getPage(params),
                new QueryWrapper<RepairmanEntity>()
        );

        return new PageUtils(page);
    }

}